package com.atguigu.gulimall.product;

/**
 * 商品常量
 */
public class ProductConstant {

    /**
     * 商品上架枚举类
     */
    public enum PublishStatus {
        NEW_SPU(0, "新建"), SPU_UP(1, "上架"), SPU_DOWN(2, "下架");

        private int code;
        private String message;

        PublishStatus(int code, String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
